package com.rs.model;

import java.io.Serializable;
import java.util.Date;

import com.rs.util.TimeTypeConversionUtil;

/**
 * 
 * 描述：物品领用
 * 
 * @author：fjc
 * @date 2020年7月8日
 * @version:1.0
 */
public class ItemsRecipients implements Serializable {
	private Integer it_id;//物品领用id

	private Integer it_uid;//用户id

	private String it_uname;//用户名称

	private String it_purpose;//物品用途

	private String it_name;//物品名称

	private Integer it_num;//物品数量

	private String it_reason;//领用详情

	private Date it_time;//领用时间

	private String it_img;//图片地址

	private Integer it_auid;//审批人id

	private String it_auname;//审批人姓名

	private Integer it_audit;//审核状态（0：待审核，1：审核通过，2：审核未通过）

	private Integer pageNum;

	private Date startTime;//查询开始时间

	private Date endTime;//查询结束时间

	private static final long serialVersionUID = 1L;

	//转为数组
	public Object[] toObjects(int leng) {
		Object[] ary = new Object[leng];

		ary[0] = it_id;

		ary[1] = it_uname;

		ary[2] = it_name;

		ary[3] = TimeTypeConversionUtil.getStringDate(it_time);

		switch (it_audit) {
		case 0:
			ary[4] = "待审核";
			break;
		case 1:
			ary[4] = "通过";
			break;
		case 2:
			ary[4] = "驳回";
			break;

		}

		ary[5] = it_auname;

		ary[6] = "审核";

		ary[7] = "查看";

		return ary;
	}

	public Integer getIt_id() {
		return it_id;
	}

	public void setIt_id(Integer it_id) {
		this.it_id = it_id;
	}

	public Integer getIt_uid() {
		return it_uid;
	}

	public void setIt_uid(Integer it_uid) {
		this.it_uid = it_uid;
	}

	public String getIt_uname() {
		return it_uname;
	}

	public void setIt_uname(String it_uname) {
		this.it_uname = it_uname;
	}

	public String getIt_purpose() {
		return it_purpose;
	}

	public void setIt_purpose(String it_purpose) {
		this.it_purpose = it_purpose;
	}

	public String getIt_name() {
		return it_name;
	}

	public void setIt_name(String it_name) {
		this.it_name = it_name;
	}

	public Integer getIt_num() {
		return it_num;
	}

	public void setIt_num(Integer it_num) {
		this.it_num = it_num;
	}

	public String getIt_reason() {
		return it_reason;
	}

	public void setIt_reason(String it_reason) {
		this.it_reason = it_reason;
	}

	public Date getIt_time() {
		return it_time;
	}

	public void setIt_time(Date it_time) {
		this.it_time = it_time;
	}

	public String getIt_img() {
		return it_img;
	}

	public void setIt_img(String it_img) {
		this.it_img = it_img;
	}

	public Integer getIt_auid() {
		return it_auid;
	}

	public void setIt_auid(Integer it_auid) {
		this.it_auid = it_auid;
	}

	public String getIt_auname() {
		return it_auname;
	}

	public void setIt_auname(String it_auname) {
		this.it_auname = it_auname;
	}

	public Integer getIt_audit() {
		return it_audit;
	}

	public void setIt_audit(Integer it_audit) {
		this.it_audit = it_audit;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Override
	public String toString() {
		return "ItemsRecipients [it_id=" + it_id + ", it_uid=" + it_uid + ", it_uname=" + it_uname + ", it_purpose="
				+ it_purpose + ", it_name=" + it_name + ", it_num=" + it_num + ", it_reason=" + it_reason + ", it_time="
				+ it_time + ", it_img=" + it_img + ", it_auid=" + it_auid + ", it_auname=" + it_auname + ", it_audit="
				+ it_audit + ", pageNum=" + pageNum + ", startTime=" + startTime + ", endTime=" + endTime + "]";
	}

}